﻿using MoneyWentWhere.Utils;
using MoneyWentWhere.WinFormsUI.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MoneyWentWhere.WinFormsUI
{
    /// <summary>
    /// Provides replaceable services for app components.
    /// </summary>
    static class Service
    {
        public static IDialogBoxService Dialog
        {
            get { return Lazy.Get(ref _messageBox, () => new DialogBoxService()); }
            set { _messageBox = value; }
        }
        static IDialogBoxService _messageBox;

    }
}
